package com.wopinla.service.impl;
import com.wopinla.dao.CommentDao;
import com.wopinla.dao.TypeDao;
import com.wopinla.pojo.*;

import com.wopinla.pojo.comment;
import com.wopinla.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service   //添加注解

public class CommentServiceImpl implements CommentService{
    //注入dao层（调用dao）
    @Autowired
    private CommentDao commentDao;

    @Override
    public int addcomment(Map<String, Object> map)
    {
        return  commentDao.addcomment(map);
    }

    @Override
    public List<comment> findComment(int gid) {
        return commentDao.findComment(gid);
    }


}
